package com.hzlj.position.config.rest.wd.impl.traxBean;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
public class TraxBeanAlarmMessageResultDTO {
    @JsonProperty("Imei")
    private String imei;
    @JsonProperty("ExceptionID")
    private String exceptionID;
    @JsonProperty("AlarmType")
    private String alarmType;
    @JsonProperty("AlarmName")
    private String alarmName;
    @JsonProperty("AlarmTime")
    private String alarmTime;
    @JsonProperty("Lat")
    private BigDecimal lat;
    @JsonProperty("Lng")
    private BigDecimal lng;

    public void setAlarmTime(String alarmTime) {
        this.alarmTime = TraxBeanDateParse.parseDateTime(alarmTime);
    }

}
